package com.rzcode.coinex.kernel.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rzcode.coinex.kernel.common.enums.TransactionTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;



@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "turnover_statistics")
public class TurnoverStatistics {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 成交日期:以天为最小单位统计
     */
    @ApiModelProperty(value = "成交日期")
    private LocalDateTime date ;

    @ApiModelProperty(value = "年")
    private int year ;

    @ApiModelProperty(value = "月")
    private int month ;

    @ApiModelProperty(value = "日")
    private int day ;

    @ApiModelProperty(value = "类型")
    private TransactionTypeEnum type ;

    /**
     * 交易区:平台指定的合法币种
     */
    @ApiModelProperty(value = "交易区")
    private String unit;

    /**
     * 当天的交易量:币种（coinUnit）的数量
     */
    @ApiModelProperty(value = "当天的交易量")
    private BigDecimal amount ;
    /**
     * 当天收取的币种手续费
     */
    @ApiModelProperty(value = "当天收取的币种手续费")
    private BigDecimal fee ;

}
